import { http } from "@/utils/http";

type ResultTable = {
  total?: number;
  data?: Array<any>;
};

//碳排放对比标准图获取设施活动列表
export const accountingEmissionDatagetFacilityList = (data?: object) => {
  return http.request<ResultTable>("post", `/energy/accountingEmissionData/getFacilityList`, {
    data
  });
};

//设施活动排放分析
export const accountingEmissionDataemissionTrend = (data?: object) => {
  return http.request<ResultTable>("post", `/energy/accountingEmissionData/emissionTrend`, {
    data
  });
};
